package com.newblog.dao;

public class MysqlBlogFactory extends BlogFactory {
	private CategoryDAO categoryDao;
	private CommentDAO  commentDao;
	private PostDAO     postDao;
	private TagDAO      tagDao;
	private UserDAO     userDao;
	
	public MysqlBlogFactory(){
		categoryDao = new CategoryDAOMysql(this);
		commentDao  = new CommentDAOMysql(this);
		postDao     = new PostDAOMysql(this);
		tagDao      = new TagDAOMysql(this);
		userDao     = new UserDAOMysql(this);
	}
	
	public CategoryDAO createCategoryDao() {
		return categoryDao;
	}

	public CommentDAO createCommentDao() {
		return commentDao;
	}

	public PostDAO createPostDao() {
		return postDao;
	}

	public TagDAO createTagDao() {
		return tagDao;
	}

	public UserDAO createUserDao() {
		return userDao;
	}

}
